//引入模块
import Vue from 'vue'
//引入app组件
import App from './App'
import router from './router'
import VueResource from 'vue-resource'
// import VuePreview from 'vue-preview'

// import Vant from 'vant';
// import 'vant/lib/vant-css/index.css';
import { Swipe, SwipeItem,NavBar,Tabbar, TabbarItem,Icon,NoticeBar,Card,Tab,Tabs,Lazyload , Button,ImagePreview} from 'vant';


Vue
.use(Swipe).use(SwipeItem)
.use(Tabbar).use(TabbarItem)
.use(NavBar)
.use(Icon)
.use(VueResource)
.use(NoticeBar)
.use(Card)
.use(Tab)
.use(Tabs)
.use(Lazyload)
.use(Button)
.use(ImagePreview)

Vue.http.options.root = 'http://localhost:5000/'
Vue.http.options.emulateJSON = true
//创建实例
new Vue ({
  el:'#app',
  router,
  render: c => c(App)
  // components:{
  //   App
  // },
  // template:'<App></App>'
})

